class DeviceModel {
  final String id;
  final String deviceSn;
  final String? terminalId;
  final String? deviceName;
  final String? status;

  DeviceModel({
    required this.id,
    required this.deviceSn,
    this.terminalId,
    this.deviceName,
    this.status,
  });

  factory DeviceModel.fromJson(Map<String, dynamic> json) {
    return DeviceModel(
      id: json['id'].toString(),
      deviceSn: json['deviceSn'],
      terminalId: json['terminalId'],
      deviceName: json['deviceName'],
      status: json['status'],
    );
  }
} 